<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="zzws.FA" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="javascript">
function check(){
	form = document.form1;
	if(form.Identity.value==-1){
		window.alert("请选择登陆身份");
		form.shenfen.setfocus;
		return false;
	}
	if(form.UserName.value==""){
		window.alert("用户名不能为空");
		form.StuNo.setfocus;
		return false;
	}
	else if(form.UserPass.value==""){
		window.alert("密码不能为空");
		form.Password.setfocus;
		return false;
	}
	
}
</script>
<link href="../css/admin/main.css" rel="stylesheet" type="text/css">
<title>登陆平台</title>
</head>

<body>
	<%@ include file="header.jsp" %>

	<table width="600" height="400" border="0" align="center">
	
	<form action="/workstudy/logon/logon_con.jsp" method="post" name="form1">
	<tr>
		<td>		<table width="600" border="0">
          <tr>
            <td height="30" align="right">请选择登陆身份:</td>
            <td height="30"><select name="<%=FA.Identity %>" class="text">
                <option value="-1">-请选择登陆身份-</option>
                <option value="1">校级管理员</option>
                <option value="2">学生</option>
                <option value="3">学院/用人单位</option>
              </select>
            </td>
          </tr>
          <tr>
            <td height="30" align="right">用户名/学号:</td>
            <td height="30"><input name="<%=FA.UserName %>" type="text" class="text">
            </td>
          </tr>
          <tr>
            <td height="30" align="right">密码:</td>
            <td height="30"><input name="<%=FA.UserPass %>" type="password" class="text">
            </td>
          </tr>
          <tr >
            <td height="30" align="right">
            <input name="Submit" type="submit" class="button1" onClick="return check()" value="提交"></td>
			<td height="30">
			<input type="reset" name="Submit" value="重置"></td>
          </tr>
          <tr align="center" colspan="2">
            <td height="30" colspan="2"><%
								String error = request.getParameter("error");
								if( error!=null&&error.equals("1") ){
									out.print("用户名或密码错误");
								}else if( error!=null&&error.equals("2")  )
								{
									out.print("数据库异常");
								}
								
							 %>
            </td>
		  </tr>
        </table></td>
	</tr>
	</form>
	
</table>


	

<%@ include file="footer.jsp" %>
</body>
</html>

